c782a2662acc09bcff12da61d5f7a48ad69bdaaf,enterprise/server/src/main/java/org/neo4j/server/modules/ManagementApiModule.java,ManagementApiModule,managementApiUri,#,61

Before Change


    }

    private URI managementApiUri() throws UnknownHostException {
        if (neoServer.getConfiguration().containsKey(Configurator.WEB_ADMIN_PATH_PROPERTY_KEY)) {
            try {
                return new URI(neoServer.getConfiguration().getProperty(Configurator.WEB_ADMIN_PATH_PROPERTY_KEY).toString());
            } catch (URISyntaxException e) {
                throw new RuntimeException(e);
            }
        }
        log.warn("Could not establish the Webadmin API URI from configuration, defaulting to [%s]",
                generateUriFor(neoServer.baseUri(), DEFAULT_WEB_ADMIN_REST_API_PATH));
        return generateUriFor(neoServer.baseUri(), DEFAULT_WEB_ADMIN_REST_API_PATH);
    }
}

After Change



    private URI managementApiUri(NeoServerWithEmbeddedWebServer neoServer) throws UnknownHostException {
        try {
            return new URI(neoServer.getConfiguration().getString(Configurator.WEB_ADMIN_PATH_PROPERTY_KEY, Configurator.DEFAULT_WEB_ADMIN_REST_API_PATH));
        } catch (URISyntaxException e) {
            throw new RuntimeException(e);
        }